import base64
import hashlib

test_str = "5LuK5aSp5piv5omT5Y2h55qE56ysMzflpKnvvIzliqrlipvvvIznm7jkv6HniZvlubTkvJrmmrTlr4zvvIE="
# 解码:
result = base64.b64decode(test_str.encode('utf-8'))
print(str(result,'utf-8'))

# md5加密:
str_md5 = hashlib.new('md5',test_str.encode('utf-8')).hexdigest()
print(str_md5)